{% extends "themes/default/base.html" %}
{% load pagination %}
{% block head_block %}
{% endblock %}

{% block content %}
	{% if entries %}
	{% begin_pagination entries page %}
	{% for entry in entries %}
		<article class="post">
			<h2><a href="/{{ entry.get_absolute_url|escape }}" rel="bookmark">{{entry.title|escape}}</a></h2>
			<div class="pmeta">{{entry.date|date:"Y-m-d"}} <span>&middot;</span> Posted in <a href="/category/{{entry.category.slug}}">{{entry.category.name}}</a></div>
			<div class="entry">
				<p>{{entry.excerpt_content|safe}}</p>
			</div>
			<div class="ptags">
			<span class="comments"><a href="/{{entry.link|escape}}#comments">{{entry.comments.count}} Comments</a></span> 
			Tags: {% for tag in entry.get_tags %}
						{% if forloop.last %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>. 
						{% else %}<a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a>, 
						{% endif %}
					{% endfor %} 
			</div>
		</article>
	{%endfor%}
	{%else %}
		<h2>Not Found</h2>
		<p>Sorry, but you are looking for something that isn't here.</p>
	{%endif%}
	{% end_pagination %}
{% endblock%}